﻿{% extends "gma/base.html" %}

<!-- CONTENT
  =====================================================================-->

{% block content %}

<div class="page__bd">
    <div class="weui-panel weui-panel_access">
        <div class="weui-panel__hd"> 版本列表({{ versions|length }}) </div>
        <div class="weui-panel__bd">
            {% for version in versions %}
            <a href="{{ version.download_url }}" class="weui-media-box weui-media-box_appmsg weui-cell_access">
                <div class="weui-media-box__hd">
                    {% if is_ios_device %}
                        {% if version.platform == 'ios' %}
                            <i class="fab fa-apple weui_grid_icon_fa_red" style="font-size:50px"></i>
                        {% else %}
                            <i class="fab fa-apple weui_grid_icon_fa_black" style="font-size:50px"></i>
                        {% endif %}
                    {% else %}
                        <i class="fab fa-android weui_grid_icon_fa" style="font-size:50px"></i>
                    {% endif %}
                </div>
                <div class="weui-media-box__bd">
                    <h4 class="weui-media-box__title">v{{ version.version_no }} (b{{ version.build_no }}) {{ version.platform_name }}</h4>
                    <p class="weui-media-box__desc">{{ version.create_time|date:"Y-m-d H:i:s" }}</p>
                    <p class="weui-media-box__desc">{{ version.bundle_id }}</p>
                    <p class="weui-media-box__desc">{{ version.comment }}</p>
                </div>

                <div class="weui-cell__ft">
                    {% if version.open_download == 1 %}
                    <i class="fa fa-arrow-alt-circle-down"></i>
                    {% endif %}
                </div>
            </a>
            {% endfor %}

            <div class="weui-media-box weui-media-box_text">
                <ul class="weui-media-box__info">
                    <li class="weui-media-box__info__meta"> 共有 {{ versions|length }} 个版本 </li>
                </ul>
            </div>
        </div>
    </div>
</div>

<div class="page__ft">
    <a href="{% url 'gma:home' %}">
        <span class="bottom-logo">
           HiBao
       </span>
    </a>
</div>

{% endblock content %}


<!-- SCRIPT
  =====================================================================-->

{% block extra_js %}

{% endblock extra_js %}